#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n = 0;
	int j = 0,i=0;
	int a = 0,b=0;
	while (scanf("%d", &n) != EOF)
	{ 
		for (j = 1; j <= n; j++)
		{
			for (i = 1; i <= j; i++)
			{
				b = j * i;
				printf("%d * %d =%d ",i, j, b);

			}
			printf("\n");

		}
		
	}
	return 0;
}